package cn.bitkit.tools.common;

import cn.bitkit.base.util.RandomUtil;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

/**
 * @author changbo
 */
@Slf4j
public class ThreadUtil {

	@SneakyThrows
    public static void sleep(long m){
		Thread.sleep(m);
    }

	@SneakyThrows
    public static void sleep(long m, int random){
		Thread.sleep(m, RandomUtil.random(0, random));
    }
}
